#include "MyGeniusBox.h"

CMyGeniusBox::CMyGeniusBox( CBoxMesh* pBoxMesh )
	:	m_pBoxMesh( pBoxMesh )
{
	D3DXMatrixIdentity( &m_matPosition );
}

CMyGeniusBox::~CMyGeniusBox()
{
	m_pBoxMesh = NULL;
}

void	CMyGeniusBox::Update()
{

}

void	CMyGeniusBox::Render( LPDIRECT3DDEVICE9 pDevice )
{
	pDevice->SetTransform( D3DTS_WORLD, &m_matPosition );

	pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
	m_pBoxMesh->Render( pDevice );

	pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME );
	m_pBoxMesh->Render( pDevice );
}
